<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/12/31 0031
 * Time: 9:24
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);


namespace app\api\controller;

use app\common\business\Shipping;
use app\common\lib\Show;
use app\common\lib\Status;

class Goods extends Base
{

    public  function  getshippingfee(){

        try{
           $fee= (new Shipping())->sumshippingFee('106.46473','29.453674','106.655981','29.700421');
        }catch (\Exception $e){
            return Show::json_show(Status::mini_error, $e->getMessage());
        }

        return Show::json_show(Status::mini_normal, "ok", [
            "fee" =>$fee
        ]);
    }

}